//
//  JPInformationTableViewCell.m
//  用户信息设置
//
//  Created by 周述坚 on 16/11/13.
//  Copyright © 2016年 周述坚. All rights reserved.
//

#import "JPDoctorCell.h"

@interface JPDoctorCell()

// 姓名
@property (weak, nonatomic) IBOutlet UILabel *nameLabel;
// 职位名
@property (weak, nonatomic) IBOutlet UILabel *positionLabel;
// 医院名
@property (weak, nonatomic) IBOutlet UILabel *hospitalView;
// 手术数
@property (weak, nonatomic) IBOutlet UILabel *operationLabel;
// 鲜花数
@property (weak, nonatomic) IBOutlet UILabel *flowerLabel;
// 锦旗数
@property (weak, nonatomic) IBOutlet UILabel *bannerLabel;



@end


@implementation JPDoctorCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setModel:(JPDoctorModel *)model {
    
    _model = model;
    self.nameLabel.text = model.doctor_name;
    self.hospitalView.text = model.hospital_name;
    self.positionLabel.text = model.doctor_title_name;
    self.flowerLabel.text = [NSString stringWithFormat:@"%zd",model.flower];
    self.bannerLabel.text = [NSString stringWithFormat:@"%zd",model.banner];
    self.operationLabel.text = [NSString stringWithFormat:@"%zd",model.operation_count];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
